<!DOCTYPE html>
<html>
<head>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="static/js/html5.js"></script>
    <![endif]-->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="format-detection" content="telephone=no"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>悍马半挂车学习培训基地-联系我们</title>
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
    <script type="text/javascript" src="static/js/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="static/css/owl.carousel.min.css">
    <link rel="stylesheet" type="text/css" href="static/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="static/css/global.css">
    <link rel="stylesheet" type="text/css" href="static/css/style.css">
    <script type="text/javascript" src="static/js/wow.js"></script>
    <script type="text/javascript" src="static/js/main.js"></script>
    <script type="text/javascript" src="static/js/owl.carousel.js"></script>
    <script type="text/javascript" src="static/js/jquery.min.js"></script>
</head>
<body>
<!-------------------------------------- 头部开始 -------------------------------------->
<div class="header">
    <div class="wrap">
        <div class="logo"><a href="index.html"><img src="static/picture/logo.png"/></a></div>
        <div class="nav">
            <ul>
                <li><a href="index.html">网站首页</a></li>

                <li><a href="about.html">关于我们</a></li>

                <!-- <li><a href="kecheng.html">班级课程</a></li>

                 <li><a href="tuandui.html">名师团队</a></li>

                 <li><a href="case.html">作品案例</a></li>

                 <li><a href="news.html">新闻动态</a></li>-->
                <li class='on'><a href='contact.html'>立即报名</a></li>
            </ul>
            <div class="clear"></div>
        </div>
        <div class="nav_wap"></div>
        <div class="clear"></div>
    </div>
</div>

<!-------------------------------------- 头部结束 -------------------------------------->
<!-------------------------------------- 内容开始 -------------------------------------->
<div class="mainer">
    <div class="wrap">
        <div class="contact">
            <div class="img wow fadeInUp" data-wow-delay=".1s"><img src="static/photo/地图.jpg"/></div>
            <div class="cont_rt wow fadeInUp" data-wow-delay=".1s">
                <div class="contact_box">
                    <div class="tit">
                        <h3>立即咨询</h3>
                        <span></span></div>


                    <form action="http://localhost:8080/StudentController/studentAccount" enctype="multipart/form-data" method="post"
                          onsubmit="return checkForm();">
                        <input type="hidden" name="action" value="post"/>
                        <input type="hidden" name="diyid" value="1"/>
                        <input type="hidden" name="do" value="2"/>
                        <div class="list">
                            <ul>
                                <li><span>姓名：</span>
                                    <div class="div_input">
                                        <input type='text' name='name' id='name'>
                                    </div>
                                </li>
                                <li><span>手机号：</span>
                                    <div class="div_input">
                                        <input type='text' name='tel' id='tel'>
                                    </div>
                                </li>
                                <li><span>微信号：</span>
                                    <div class="div_input">
                                        <input type='text' name='VX' id='VX'>
                                    </div>
                                </li>
                                <li class="li_last"><span>写下您的需求和建议：</span>
                                    <div class="div_input">
                                        <textarea type='text' name='content' id='content'></textarea>
                                    </div>
                                </li>
                            </ul>
                            <input type="hidden" name="dede_fields" value="name,text;tel,text;email,text;content,text"/>
                            <input type="hidden" name="dede_fieldshash" value="dd096740d8e022216d9b574451c07efe"/>
                            <div class="clear"></div>
<!--                            <div class="btn1"><a onclick="$('form').submit()"><span>提交留言</span></a></div>-->
                            <div class="btn1"><a><span>提交留言</span></a></div>
                        </div>
                    </form>

                    <script type="text/javascript">

                        function checkForm() {
                            /*if (document.getElementById('name').value.length == 0) {
                                alert('姓名不能为空！');
                                return false;
                            }*/
                            if (document.getElementById('tel').value.length == 0) {
                                alert('手机号不能为空！');
                                return false;
                            }

                            return true;
                        }
                    </script>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="c_list wow_list">
            <ul>
                <li class="fadeInUp wow">
                    <div class="img"><img src="static/picture/icon13.png"/><i
                            class="i1 animated wow infinite flash"></i></div>
                    <div class="text">
                        <h4>手 机</h4>
                        <p>199-6196-5515（微信同号)</p>
                    </div>
                </li>
                <li class="fadeInUp wow">
                    <div class="img"><img src="static/picture/icon14.png"/>
                        <i class="i2 animated wow infinite bounceInLeft"></i></div>
                    <div class="text">
                        <h4>邮 箱</h4>
                        <p>XQCW95@163.com</p>
                       <!-- <p>
                            <a href="/cdn-cgi/l/email-protection" class="__cf_email__"
                               data-cfemail="3d5c595054537d5c59505453135e5250">[email&#160;protected]</a></p>-->
                    </div>
                </li>
                <li class="fadeInUp  wow">
                    <div class="img"><img src="static/picture/icon15.png"/><i
                            class="i3 animated wow infinite rubberBand"></i></div>
                    <div class="text">
                        <h4>地 址</h4>
                        <p>江苏省徐州市悍马半挂倒车培训学校 </p>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>
<!-------------------------------------- 内容结束 -------------------------------------->
<!-------------------------------------- 尾部开始 -------------------------------------->
<div class="footer" style="background:url(static/images/ft.jpg) no-repeat center center; background-size:cover;">
    <div class="wrap">
        <div class="left">
            <h3>徐州悍马半挂倒车培训学校</h3>
            <p>
                <a href="index.html">网站首页</a>/
                <a href="about.html">关于我们</a>/
                <!--<a href=kecheng.html">班级课程</a>/
                <a href="tuandui.html">名师团队</a>/-->
                <a href="contact.html">立即报名</a></p>
        </div>
        <div class="right">
            <h3>电话：<span>199-6196-5515（微信同号） 秦教练</span></h3>
            <p>Copyright &copy; 2002-2020 徐州悍马半挂倒车培训学校 版权所有&nbsp;&nbsp;
                <a href="http://www.beian.miit.gov.cn/" target="_blank" rel="nofollow">苏ICP备20041886号</a>&nbsp;&nbsp;
                <!--<a href="/sitemap.xml" target="_blank">XML地图</a>&nbsp;&nbsp;
                <a href="http://www.adminbuy.cn"target="_blank">网站源码</a></p>-->
        </div>
        <div class="clear"></div>
    </div>
</div>
<!-------------------------------------- 尾部结束 -------------------------------------->
<script data-cfasync="false" src="static/js/email-decode.min.js"></script>
<script type="text/javascript">
    $(function (){
        $("#tel").on("change",function (newVal,oldValue){
            var newVal=$("#tel").val();
            var pattern = /^1[34578]\d{9}$/;
            var b= pattern.test(newVal);
            if(!b) {
                alert("手机号格式不正确");
            }

            $(".btn1").click(function (){
                var name=$("#name").val();
                var phone=$("#tel").val();
                var wechat=$("#VX").val();
                $.ajax({
                    type:"post",
                    url:"/StudentController/studentAccount",
                    data: {
                        name:name,
                        tel:phone,
                        VX:wechat
                    },
                    success:function (e){
                        console.log("==========")
                        console.log(e);
                        console.log("====="+e.rtnCode);
                        if("0000"==e.rtnCode){
                            alert("保存成功");
                        }else {
                            alert("保存失败");
                        }
                    },
                    error:function (){

                    }
                })

            })
            //alert($("#tel").val());
        })
    })
</script>
</body>
</html>